package com.nightsoul.springboottest2.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.nightsoul.springboottest2.domain.User;

@RestController
public class UserController {

	@RequestMapping("/user/1")
	public User getUser() {
		User user = new User();
		user.setId(1L);
		user.setUsername("张三");
		user.setPassword("zhangsan");
		return user;
	}
}
